package com.sky.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.OrdersCancelDTO;
import com.sky.dto.OrdersConfirmDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersRejectionDTO;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.OrderStatisticsVO;

public interface OrderService extends IService<Orders> {


    Result<PageResult> getOrderPageInfo(OrdersPageQueryDTO dto);

    Result<Orders> getOrderDetailById(Long id);

    Result<OrderStatisticsVO> getOrderStatusCount();


    Result<Object> confirmOrderById(OrdersConfirmDTO id);

    Result<Object> rejectionOrder(OrdersRejectionDTO dto);

    Result<Object> deliveryOrders(Long id);

    Result<Object> cancelOrder(OrdersCancelDTO dto);
    Result<Object> completeOrders(Long id);
}
